package com.liudw.eureka.provide.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

	@Value("${server.port}")
	private String port;
	
	@RequestMapping(value = "/user/hi", method = RequestMethod.GET)
	public String hi(String message) {
		return String.format("%s, 欢迎访问,端口为:%s", message, port);
	}
	
}
